package com.chengyu.eyc.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "eyc_vehicle_maint_qa")
public class EycVehicleMaintQa extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "VEHICLE_MAINT_QA_ID")
    private String vehicleMaintQaId;

    /**
     * 标题
     */
    @Column(name = "QUESTION")
    private String question;

    /**
     * 内容
     */
    @Column(name = "ANSWER")
    private String answer;

    /**
     * 搜索关键字
     */
    @Column(name = "KEY_WORD")
    private String keyWord;

    @Column(name = "IS_ACTIVE")
    private Boolean isActive;

    /**
     * 获取内容
     *
     * @return ANSWER - 内容
     */
    public String getAnswer() {
        return answer;
    }

    /**
     * @return IS_ACTIVE
     */
    public Boolean getIsActive() {
        return isActive;
    }

    /**
     * 获取搜索关键字
     *
     * @return KEY_WORD - 搜索关键字
     */
    public String getKeyWord() {
        return keyWord;
    }

    /**
     * 获取标题
     *
     * @return QUESTION - 标题
     */
    public String getQuestion() {
        return question;
    }

    /**
     * @return VEHICLE_MAINT_QA_ID
     */
    public String getVehicleMaintQaId() {
        return vehicleMaintQaId;
    }

    /**
     * 设置内容
     *
     * @param answer 内容
     */
    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    /**
     * @param isActive
     */
    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    /**
     * 设置搜索关键字
     *
     * @param keyWord 搜索关键字
     */
    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord == null ? null : keyWord.trim();
    }

    /**
     * 设置标题
     *
     * @param question 标题
     */
    public void setQuestion(String question) {
        this.question = question == null ? null : question.trim();
    }

    /**
     * @param vehicleMaintQaId
     */
    public void setVehicleMaintQaId(String vehicleMaintQaId) {
        this.vehicleMaintQaId = vehicleMaintQaId == null ? null : vehicleMaintQaId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", vehicleMaintQaId=").append(vehicleMaintQaId);
        sb.append(", question=").append(question);
        sb.append(", answer=").append(answer);
        sb.append(", keyWord=").append(keyWord);
        sb.append(", isActive=").append(isActive);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}